<%= content_for :html_head do %>
    <%= javascript_tag do %>
      jQuery(function($){
        $('#block_content .header').html("Content tagged with '<%= escape_javascript(h(@content_block.name)) %>'")
      })
    <% end %>
<% end %>
<div class="pad">
  <div class="roundedcorners">
    <table class="data">
      <thead>
        <tr>
          <th class="name first" colspan="2">
            <div class="dividers">
              Name
            </div>
          </th>
          <th class="last" colspan="2">
            <div class="dividers">
              Type
            </div>
          </th>
        </tr>
      </thead>
      <tbody>
        <% for tg in @taggings %>
          <tr>
            <td class="first"></td>
            <td class="name">
              <div class="dividers">
                <%= link_to h(tg.taggable.name), tg.taggable %>
              </div>
            </td>              
            <td class="name">
              <div class="dividers">
                <%=h tg.taggable.display_name %>
              </div>
            </td>
            <td class="last"></td>
          </tr>
        <% end %>
      </tbody>
    </table>
    <div class="tl"></div>
    <div class="tr"></div>
    <div class="bl"></div>
    <div class="br"></div>
  </div>
</div>
<% if @taggings.total_pages > 1 %>
  <%= render_pagination @taggings, Cms::Tag, {:id => @content_block} %>
<% end %>
